package tt.dz.tcp.socket;

/**
 * Created by luoyp on 2016/7/19.
 * 报文下发后用于追踪结果的接口
 */
public interface MessageFuture
{
	boolean await(long timeoutMillis) throws InterruptedException;

	boolean setSuccess();

	boolean setSuccess(String replyMessage);

	boolean setFailure(String responseCode);

	boolean isDone();

	boolean isSuccess();

	String getErrorCode();

	String getErrorMessage();

	String getMessage();

	String getReplyMessage();
}
